package com.liao.ticket.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;

public class ThreadService {

    @Async("taskThreadPool")
    public void test(){
        try {
            Thread.sleep(5000);
            System.out.println("更新完成了");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
